/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author William
 */
public class DbxconnTry {
    public static void main(String args[]){
        if (null == DOMBuilder){
            createDOMBuilder();
        }

        // Parse each XML config file, and configure the DBx instance accordingly
        for (File conf : confs){
            Document    confxml = DOMBuilder.parse(conf);
            Element     xmlroot = (Element) confxml.getElementsByTagName("DBx").item(0);
            String      nmspace = xmlroot.getAttribute("namespace");
            NodeList    dbslist = xmlroot.getElementsByTagName("database");

            // Iterate over the list of databases
            for (int i = 0; i < dbslist.getLength(); i++) {
                Element     database    = (Element) dbslist.item(i);
    }
}
